.class public Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/lightapp/view/NoNetView;

.field private b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private c:Landroid/os/Handler;

.field private d:Ljava/lang/String;

.field private e:Lcom/waiqin365/lightapp/visit/b/b;

.field private f:Ljava/util/ArrayList;

.field private g:Ljava/lang/String;

.field private h:I

.field private i:I

.field private j:Lcom/waiqin365/lightapp/visit/b/a;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->h:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 4

    const/16 v3, 0x8

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0c52

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    const v0, 0x7f0c0c53

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;Lcom/waiqin365/lightapp/visit/b/a;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a(Lcom/waiqin365/lightapp/visit/b/a;)V

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/visit/b/a;)V
    .locals 3

    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "returnTo"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object p1, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->finish()V

    return-void
.end method

.method private b()V
    .locals 3

    const/16 v2, 0x8

    const v0, 0x7f0c0330

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0331

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f08071e

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0332

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0333

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->f:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->f:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->j:Lcom/waiqin365/lightapp/visit/b/a;

    invoke-direct {v0, p0, v1, v2}, Lcom/waiqin365/lightapp/visit/b/b;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Lcom/waiqin365/lightapp/visit/b/a;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->e:Lcom/waiqin365/lightapp/visit/b/b;

    const v0, 0x7f0c0c8e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->e:Lcom/waiqin365/lightapp/visit/b/b;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/visit/f;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/f;-><init>(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/visit/g;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/g;-><init>(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/visit/h;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/h;-><init>(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->d()V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->i:I

    return v0
.end method

.method private c()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/i;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/i;-><init>(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->c:Landroid/os/Handler;

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method private d()V
    .locals 3

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "condition.funcId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.page"

    iget v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->h:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.rows"

    iget v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->i:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.dynamic.query"

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/a/m;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->d:Ljava/lang/String;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/a/m;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->c:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->h:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->h:I

    return v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;)Lcom/waiqin365/lightapp/visit/b/b;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->e:Lcom/waiqin365/lightapp/visit/b/b;

    return-object v0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    packed-switch p2, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    const-string/jumbo v0, "selectItem"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/a;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a(Lcom/waiqin365/lightapp/visit/b/a;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0xd9
        :pswitch_0
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->back()V

    goto :goto_0

    :sswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "refFunction"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "selectedItem"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->j:Lcom/waiqin365/lightapp/visit/b/a;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_2
    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->d()V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0330 -> :sswitch_1
        0x7f0c0c3d -> :sswitch_2
        0x7f0c0c4f -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030291

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->setContentView(I)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->d:Ljava/lang/String;

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->h:I

    const/16 v0, 0x14

    iput v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->i:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "refFunction"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->g:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedItem"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/a;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->j:Lcom/waiqin365/lightapp/visit/b/a;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->c()V

    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/ChildFormSelectActivity;->d()V

    return-void
.end method
